#ifndef INPUTSERVERPARAMS_H
#define INPUTSERVERPARAMS_H

#include <map>

class InputServerParams
{
 public:
  typedef void (InputServerParams::*pi)(int index);
  int getPort() const { return _port; }
  void setPort(const int port) { _port = port; }
  void parseInput(int argc, char **argv);
  InputServerParams();
 private:
  int _argc;
  char **_argv;
  int _port;
  std::map<std::string, pi> _linkInput;
  void initLinkInput();
  void bindPort(int i);
};

#endif
